function performLogin() {
    if ($('#username').val().length > 0 && $('#password').val().length > 0) {
        return true;//AJAX here - login form action submit (maybe return false and login without reload)
    } else {
        alert("Incorrect login/password");
        return false;
    }
}